package com.kodandroid.commons;

import java.util.ArrayList;
import java.util.List;

public class Seat extends Attribute {
	private List<Item> order;
	
	public Seat(int id) {
		this.id = id;
		this.order = new ArrayList<Item>();
	}
	
	public void setOrder(Item item) {
		order.add(item);
	}
	
	public Price getPrice() {
		
		double price = 0;
		for(Item item : order) {
			
			price += item.getPrice();
		}
		return new Price(price);
	}
}
